package com.ruoyi.system.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.system.domain.RcDistrict;
import com.ruoyi.system.mapper.RcDistrictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyHouseMapper;
import com.ruoyi.system.domain.HyHouse;
import com.ruoyi.system.service.IHyHouseService;

/**
 * 租房Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-10
 */
@Service
public class HyHouseServiceImpl implements IHyHouseService 
{
    @Autowired
    private HyHouseMapper hyHouseMapper;

    @Autowired
    RcDistrictMapper rcDistrictMapper;

    /**
     * 查询租房
     * 
     * @param id 租房主键
     * @return 租房
     */
    @Override
    public HyHouse selectHyHouseById(Long id)
    {
        return hyHouseMapper.selectHyHouseById(id);
    }

    /**
     * 查询租房列表
     * 
     * @param hyHouse 租房
     * @return 租房
     */
    @Override
    public List<HyHouse> selectHyHouseList(HyHouse hyHouse)
    {
        return hyHouseMapper.selectHyHouseList(hyHouse);
    }

    /**
     * 新增租房
     * 
     * @param hyHouse 租房
     * @return 结果
     */
    @Override
    public int insertHyHouse(HyHouse hyHouse)
    {
        return hyHouseMapper.insertHyHouse(hyHouse);
    }

    /**
     * 修改租房
     * 
     * @param hyHouse 租房
     * @return 结果
     */
    @Override
    public int updateHyHouse(HyHouse hyHouse)
    {
        return hyHouseMapper.updateHyHouse(hyHouse);
    }

    /**
     * 批量删除租房
     * 
     * @param ids 需要删除的租房主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseByIds(Long[] ids)
    {
        return hyHouseMapper.deleteHyHouseByIds(ids);
    }

    /**
     * 删除租房信息
     * 
     * @param id 租房主键
     * @return 结果
     */
    @Override
    public int deleteHyHouseById(Long id)
    {
        return hyHouseMapper.deleteHyHouseById(id);
    }

    @Override
    public List<HyHouse> showHouse1(String zufangType) {
        return hyHouseMapper.showHouse1(zufangType);
    }

    @Override
    public List<HyHouse> showHouse2(String zufangType) {
        return hyHouseMapper.showHouse2(zufangType);
    }




}
